//
//  NormalStudentTableViewCell.swift
//  DriverSchoolAPP
//
//  Created by Logel on 2017/5/18.
//  Copyright © 2017年 Logel. All rights reserved.
//

import UIKit

class NormalStudentTableViewCell: UITableViewCell {
    @IBOutlet weak var nameLbl: UILabel!
    @IBOutlet weak var idCardNumberLbl: UILabel!
    @IBOutlet weak var phoneLbl: UILabel!
    @IBOutlet weak var payType: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    var o:Order!{
        didSet{
            nameLbl.text = o.name
            idCardNumberLbl.text  = "身份证号:\(o.idCardNumber)"
            phoneLbl.text = "电话:\(o.mobile)"
            switch o.orderType {
            case "2":
                 payType.text = "付费类型:分期付款"
            case "3":
                payType.text = "付费类型:课时付款"
            case "4":
                payType.text = "付费类型:预报名"
            default:
                payType.text = "付费类型:全额付款"
            }
        }
    }
    
}
